package com.example.cloud.model.system;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by wangtao on 2018/1/26.
 * 系统公告
 */
@Entity(name = "sys_announce")
@Data
@EqualsAndHashCode(callSuper = false)
public class Announce extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 标题
    @Column(name = "title")
    private String title;
    // 正文
    @Column(name = "content", length = 2000)
    private String content;
    // 账户编号
    @Column(name = "account_id")
    private Long accountId;
    // 账户所属组织机构
    @Column(name = "organ_id")
    private Long organId;
    // 账户所属组织名称
    @Column(name = "organ_name")
    private String organName;
}
